package blog.dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class FabricaConexao {

	private static final String PGDriver = "org.postgresql.Driver"; 
	private static final String URL = "jdbc:postgresql://localhost/dsweb_blog";
	private static final String NOME = "postgres";
	private static final String SENHA = "postgres"; 

	public static Connection getConexao() throws ClassNotFoundException, SQLException {  
		Class.forName(PGDriver);  
		return DriverManager.getConnection(URL, NOME, SENHA);  
	}  
}  